package com.hf.buildtb.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * BiCorporation entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "BI_Corporation", schema = "dbo", catalog = "BIDB")
public class BiCorporation implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = -9162733566936366806L;
	private String corpId;
	private String corpName;
	private String hospId;
	private String hospName;
	private Boolean isValid;
	private String memo;
	/**
	 * 
	 */
	private BiCooperator biCooperator;
 

	// Constructors


	/** default constructor */
	public BiCorporation() {
	}

	/** minimal constructor */
	public BiCorporation(String corpId, String corpName, Boolean isValid) {
		this.corpId = corpId;
		this.corpName = corpName;
		this.isValid = isValid;
	}

	/** full constructor */
	public BiCorporation(String corpId, String corpName, String hospId,
			String hospName, Boolean isValid, String memo) {
		this.corpId = corpId;
		this.corpName = corpName;
		this.hospId = hospId;
		this.hospName = hospName;
		this.isValid = isValid;
		this.memo = memo;
	}

	// Property accessors
	@Id
	@Column(name = "corpId", unique = true, nullable = false, length = 64)
	public String getCorpId() {
		return this.corpId;
	}

	public void setCorpId(String corpId) {
		this.corpId = corpId;
	}

	@Column(name = "corpName", nullable = false, length = 64)
	public String getCorpName() {
		return this.corpName;
	}

	public void setCorpName(String corpName) {
		this.corpName = corpName;
	}

	@Column(name = "hospId", length = 64)
	public String getHospId() {
		return this.hospId;
	}

	public void setHospId(String hospId) {
		this.hospId = hospId;
	}

	@Column(name = "hospName", length = 64)
	public String getHospName() {
		return this.hospName;
	}

	public void setHospName(String hospName) {
		this.hospName = hospName;
	}

	@Column(name = "isValid", nullable = false)
	public Boolean getIsValid() {
		return this.isValid;
	}

	public void setIsValid(Boolean isValid) {
		this.isValid = isValid;
	}

	@Column(name = "memo", length = 24)
	public String getMemo() {
		return this.memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

}